<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<script src="admin/layer/jquery2.1.4.js"></script>
<script src="admin/layer/layer.js"></script>
<head>
    <meta charset="UTF-8">
    <title>Insert title here</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">


    <style type="text/css">
        body {
            margin: 0;
            padding: 0;
            background-color: #eeeeee;
            font-family: "楷体";
        }

        .item {
            margin: 20px;
            margin-bottom: 50px;
        }

        .imte_top {
            text-align: center;
        }

        .imte_top > span {
            font-size: 14px;
            display: inline-block;
            padding: 5px 12px;
            background-color: #ddd;
            color: #fff;
            border-radius: 5px;
        }

        .item_content {
            background-color: #fff;
            padding: 25px 15px;
            margin-top: 6px;
        }

        .item_content_top_1 {
            font-size: 24px;
            font-weight: bold;
        }

        .item_content_top_2 {
            color: #eee;
            font-size: 14px;
            margin: 5px 0px;
        }

        .item_content_top_3 {
            margin: 10px 0px;
        }

        .item_content_top_4 {
            margin: 10px 0px;
        }

        .item_content_bottom > a {
            text-decoration: none;
            color: #33e;
        }
    </style>
</head>
<body>

<div class="content" id="item-status1">


</div>
<div class="content" id="item-status0">


</div>
</body>

<script>
    $(function () {
        $.getJSON("/wx/expressListByNum.do", null, function (data) {
                let express = data.object;
                if (express.status === 1) {
                    //未取件
                    var item = "<div class=\"item\">\n" +
                        "        <div class=\"imte_top\"><span>" + express.inputTime1 + "</span></div>\n" +
                        "        <div class=\"item_content\">\n" +
                        "            <div class=\"item_content_top\">\n" +
                        "                <div class=\"item_content_top_1\">取件通知</div>\n" +
                        "                <div class=\"item_content_top_2\">" + express.inputTime1 + "</div>\n" +
                        "                <div class=\"item_content_top_3\">您有一个包裹到e栈了!</div>\n" +
                        "                <div class=\"item_content_top_4\">\n" +
                        "                    取件码:<span style=\"color:#05a\">" + express.code + "</span><br>\n" +
                        "                    快递公司:" + express.company + "<br>\n" +
                        "                    运单号码:" + express.expressNumber + "<br>\n" +
                        "                    站点电话:" + express.writerPhone + "<br>\n" +
                        "                    取件地址:学校快件集散中心<br>\n" +
                        "                </div>\n" +
                        "            </div>\n" +
                        "            <hr>\n" +
                        "            <div class=\"item_content_bottom\">\n" +
                        "                <a href=\"/wx/createQRcord.do?type=express&code=" + express.code + "\">二维码</a>\n" +
                        "            </div>\n" +
                        "        </div>\n" +
                        "    </div>";
                    $("#item-status1").append($(item))
                } else {
                    //已取件
                    var item = " <div class=\"item\">\n" +
                        "        <div class=\"imte_top\"><span>" + express.outputTime1 + "</span></div>\n" +
                        "        <div class=\"item_content\">\n" +
                        "            <div class=\"item_content_top\">\n" +
                        "                <div class=\"item_content_top_1\">取件成功通知</div>\n" +
                        "                <div class=\"item_content_top_2\">" + express.outputTime1 + "</div>\n" +
                        "                <div class=\"item_content_top_3\">您有一个包裹从e栈取出了!</div>\n" +
                        "                <div class=\"item_content_top_4\">\n" +
                        "                    快递公司:" + express.company + "<br>\n" +
                        "                    运单号码:" + express.expressNumber + "<br>\n" +
                        "                    站点电话:" + express.writerPhone + "<br>\n" +
                        "                </div>\n" +
                        "            </div>\n" +
                        "            <hr>\n" +
                        "            <div class=\"item_content_bottom\">\n" +
                        "                <a href=\"#\">有疑问 ? 点了也没用</a>\n" +
                        "            </div>\n" +
                        "        </div>\n" +
                        "    </div>";
                    $("#item-status0").append($(item));
                }

            }
        );
    });
</script>
</html>